#include "DbOperationVersion.h"
#include "RootBox.h"

namespace jm4bbx {
	const char* DbOperationVersion::DB_OPERATION_VERSION_PARAM_NAME = "bag_version";

	DbOperationVersion::DbOperationVersion(const BoxParamPack& paramsPack) {
		version_ = RootBox::getBoxBoolParameterValue(paramsPack, 
			DB_OPERATION_VERSION_PARAM_NAME, true) ? BAG_VERSION : SET_VERSION;
	}

} // namespace jm4bbx
